package structure.decorator;

/**
 * 冲锋者
 */
public class Charger extends WujiangDecortor {
    public Charger(WujiangComponent wujiangComponent) {
        super(wujiangComponent);
    }
    @Override
    public void attack() {
        super.attack();
        System.out.println("攻击 加入了冲锋标的属性");
        addAttack();
    }

    @Override
    public void move() {
        super.move();
        System.out.println("移动 加入了冲锋标的属性");
        addMove();
    }

    private void addMove(){
        System.out.println("冲锋 移动 + 3");
    }

    private void addAttack(){
        System.out.println("攻击 具有 冲散属性");
    }

}
